/*
 * File Name: URLyBirdLogger.java
 * Created on: November 13, 2007, 12:42 PM
 */

package co.edu.uniandes.intercon.server.util;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Utility class used to centralice the logs of the application
 * 
 * @author Fabian Gutierrez [fagossa@gmail.com]
 */
public class P2PLogger {
    
    /**
     * Logs the specified message to the log
     * 
     * @param   message <code>String</code> to be logged
     */
    public static void log(String message) {
        Logger.getAnonymousLogger().log(Level.INFO, message);
    }
    
    /**
     * Logs the specified error message to the log
     * 
     * @param   message Error <code>String</code> to be logged
     * @param   error   Exception thrown
     */ 
    public static void logError(String message, Throwable error) {
        Logger.getAnonymousLogger().log(Level.SEVERE, message, error);
    }
    
}
